<div id="page">
    <h1 class="title">Từ thiện</h1>
    <?php 
        if(isset($this->charities)){
            foreach($this->charities as $item){
                echo "<div class='item'>";
                    echo "<div class='slideshow'>";
                        $imgs = explode(";",$item['thumbnail_url']);                        
                       if(isset($imgs)){
                           echo "<a href='".$this->baseUrl."/default/news/detail/id/".$item['id_news']."'>";
                            echo "<img src='".$imgs[0]."'>";
                           echo "</a>";
//                            $count = 0;
//                            foreach($imgs as $img){
//                                if($count!=0)
//                                    echo "<img class='change' style='display:none;' src='".$img."'  >";
//                                else
//                                   
//                                $count ++;
//                            }
                        }                            
                    echo "</div>";
                    echo "<div class='item_right'>";
                        echo "<a href='".$this->baseUrl."/default/news/detail/id/".$item['id_news']."'>";
                        echo "<h2 class='title'>".$item['title']."</h2>";
                        echo "</a>";
                        echo "<p>".$item['des']."</p>";
                        echo "<a href='".$this->baseUrl."/default/news/detail/id/".$item['id_news']."' class='more'>Xem thêm</a>";
                    echo "</div>";
                    echo "<div class='clear'></div>";
                echo "</div>";
                
            }
        }else{
            echo "No news available .";
        }
        
    ?>
</div>